﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddInnerProc.aspx.cs" Inherits="Web.admin.InnerManage.AddInnerProc" validateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <META http-equiv="content-type" content="text/html;charset=UTF-8" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../tool/editor/kindeditor.js" type="text/javascript"></script>
    <script src="../js/WebCalendar.js" type="text/javascript"></script>
    <script src="../tool/editor/lang/zh_CN.js" charset="UTF-8" type="text/javascript"></script>
    <script type="text/javascript">
        var editor;
        KindEditor.ready(function (K) {
            editor = K.create('#KindEditor', {
                width: '750px', height: '330px',
                items: [
                     'preview', 'print', 'template', 'fullscreen', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull'
                     , '|', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough',
                      'lineheight', 'removeformat', '|', 'image', 'multiimage', 'insertfile', 'table', 'hr', 'link', 'unlink', '|'
                ],
                uploadJson: '../../editor/asp.net/upload_json.ashx',
                fileManagerJson: '../../editor/asp.net/file_manager_json.ashx',
                allowFileManager: true
            });
        });
        $(function () {
            $("#Cb_url").bind("click", function () {
                if ($(this).attr("checked") == true) {
                    $(".upordown").show();
                } else {
                    $(".upordown").hide();
                }
            });
        });
    </script>
      <script type="text/javascript" language="javascript">
          function CheckEmpty() {
              if ($(".txtInput1").val() == "") {
                  alert("开始时间为必填项，不允许为空");
                  return false;
              }
              else if ($(".txtInput2").val() == "") {
                  alert("结束时间为必填项，不允许为空");
                  return false;
              }
             
              else
                  return true;
          }
          function ClearToEmpty() {
              if ($(".txtInput1").val("") && $(".txtInput2").val("") && $(".txtInput3").val("") && $(".txtInput4").val("") && $(".txtInput5").val("") && $(".txtInput6").val("") && $(".txtInput7").val(""))
                  return false;


          };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../images/main_hl.gif" /></td>
                        <td ><img src="../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>添加过程</span></td>
                        <td><img src="../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle"style="height:auto!important; height:853px !important;">
            <div class="navigation">首页&gt;用户管理&gt;添加过程
            <div style="float:right; margin-right:5px;">
                    <a href="ListInnerProc.aspx">返回过程管理列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>竞赛阶段: <input type="hidden" id="ContestId" runat="server" /><input type="hidden" id="ProcId" runat="server" /></th>
                        <td><asp:DropDownList ID="PhaseList"  runat="server" AutoPostBack="True" 
                                onselectedindexchanged="PhaseList_SelectedIndexChanged" >
                        </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>开始时间：</th>
                        <td><asp:TextBox ID="txtStartTime" onclick="SelectDate(this,'yyyy-MM-dd hh:mm')" runat="server" CssClass="txtInput1" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <th>结束时间：</th>
                        <td><asp:TextBox ID="txtEndTime" onclick="SelectDate(this,'yyyy-MM-dd hh:mm')" runat="server"  CssClass="txtInput2" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <th>地点：</th>
                        <td><asp:TextBox ID="txtAddress" CssClass="txtInput3" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th>负责人：</th>
                        <td><asp:TextBox ID="txtConductor" CssClass="txtInput4" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th>负责人称谓: </th>
                        <td><asp:TextBox ID="txtTitle" CssClass="txtInput5" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th>组织方式: </th>
                        <td><asp:TextBox ID="txtMethod" CssClass="txtInput6" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th>内容介绍: </th>
                        
                                <td align="left">
                                    
                                    <asp:TextBox  ID="KindEditor"  CssClass="txtInput7" TextMode="MultiLine" runat="server"></asp:TextBox>
                                </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btn_Save" OnClientClick="return CheckEmpty();" runat="server" 
                                Text="保存" CssClass="btn_submit" onclick="btn_Save_Click" Height="31px" 
                                Width="81px" />
                        </td>
                        <td>
                            <asp:Button ID="btn_Reset" OnClientClick="return ClearToEmpty();" runat="server" Text="重置"  CssClass="btn_reset"/>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
